<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListBillOfMaterialEntityEmpty}" rendered="#{billOfMaterialEntityController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{billOfMaterialEntityController.items.rowCount > 0}">
                    <h:outputText value="#{billOfMaterialEntityController.pagination.pageFirstItem + 1}..#{billOfMaterialEntityController.pagination.pageLastItem + 1}/#{billOfMaterialEntityController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{billOfMaterialEntityController.previous}" value="#{bundle.Previous} #{billOfMaterialEntityController.pagination.pageSize}" rendered="#{billOfMaterialEntityController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{billOfMaterialEntityController.next}" value="#{bundle.Next} #{billOfMaterialEntityController.pagination.pageSize}" rendered="#{billOfMaterialEntityController.pagination.hasNextPage}"/>&nbsp;
                    <h:dataTable value="#{billOfMaterialEntityController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_oats}"/>
                            </f:facet>
                            <h:outputText value="#{item.oats}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_wheatGerm}"/>
                            </f:facet>
                            <h:outputText value="#{item.wheatGerm}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_cinnamon}"/>
                            </f:facet>
                            <h:outputText value="#{item.cinnamon}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_nutmeg}"/>
                            </f:facet>
                            <h:outputText value="#{item.nutmeg}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_cloves}"/>
                            </f:facet>
                            <h:outputText value="#{item.cloves}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_honey}"/>
                            </f:facet>
                            <h:outputText value="#{item.honey}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_canolaOil}"/>
                            </f:facet>
                            <h:outputText value="#{item.canolaOil}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_vitMineralPowder}"/>
                            </f:facet>
                            <h:outputText value="#{item.vitMineralPowder}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_carobChips}"/>
                            </f:facet>
                            <h:outputText value="#{item.carobChips}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_proteinPowder}"/>
                            </f:facet>
                            <h:outputText value="#{item.proteinPowder}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_cocoaPowder}"/>
                            </f:facet>
                            <h:outputText value="#{item.cocoaPowder}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_hazenuts}"/>
                            </f:facet>
                            <h:outputText value="#{item.hazenuts}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_cashewnuts}"/>
                            </f:facet>
                            <h:outputText value="#{item.cashewnuts}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_walnuts}"/>
                            </f:facet>
                            <h:outputText value="#{item.walnuts}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_almonds}"/>
                            </f:facet>
                            <h:outputText value="#{item.almonds}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_macadamias}"/>
                            </f:facet>
                            <h:outputText value="#{item.macadamias}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_redcurrants}"/>
                            </f:facet>
                            <h:outputText value="#{item.redcurrants}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_raisins}"/>
                            </f:facet>
                            <h:outputText value="#{item.raisins}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_dates}"/>
                            </f:facet>
                            <h:outputText value="#{item.dates}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_apricots}"/>
                            </f:facet>
                            <h:outputText value="#{item.apricots}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_kiwis}"/>
                            </f:facet>
                            <h:outputText value="#{item.kiwis}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_apples}"/>
                            </f:facet>
                            <h:outputText value="#{item.apples}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_peaches}"/>
                            </f:facet>
                            <h:outputText value="#{item.peaches}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_product}"/>
                            </f:facet>
                            <h:outputText value="#{item.product}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_id}"/>
                            </f:facet>
                            <h:outputText value="#{item.id}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_createdAt}"/>
                            </f:facet>
                            <h:outputText value="#{item.createdAt}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_createdBy}"/>
                            </f:facet>
                            <h:outputText value="#{item.createdBy}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_lastModifiedAt}"/>
                            </f:facet>
                            <h:outputText value="#{item.lastModifiedAt}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBillOfMaterialEntityTitle_lastModifiedBy}"/>
                            </f:facet>
                            <h:outputText value="#{item.lastModifiedBy}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{billOfMaterialEntityController.prepareView}" value="#{bundle.ListBillOfMaterialEntityViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{billOfMaterialEntityController.prepareEdit}" value="#{bundle.ListBillOfMaterialEntityEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{billOfMaterialEntityController.destroy}" value="#{bundle.ListBillOfMaterialEntityDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{billOfMaterialEntityController.prepareCreate}" value="#{bundle.ListBillOfMaterialEntityCreateLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ListBillOfMaterialEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
